package com.atguigu.gmall.list.service;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/11/13 9:30
 */
public interface SearchService {
    /**
     * 商品上架
     * @param skuId
     */
    void upperGoods(Long skuId);

    /**
     * 商品下架
     * @param skuId
     */
    void lowerGoods(Long skuId);

    /**
     * 更新商品的热度排名
     * @param skuId
     */
    void incrHotScore(Long skuId);

    /**
     * 商品检索
     * @param searchParam
     * @return
     */
    SearchResponseVo search(SearchParam searchParam);
}
